﻿namespace FaceService.Infrastructure.Context;

public class FaceDbContext : BaseDbContext
{
    public DbSet<Face> Faces { get; private set; } = default!;

    public FaceDbContext(DbContextOptions<FaceDbContext> options, IMediator? mediator)
        : base(options, mediator)
    { }

    protected override void OnModelCreating(ModelBuilder modelBuilder)
    {
        base.OnModelCreating(modelBuilder);
        modelBuilder.ApplyConfigurationsFromAssembly(GetType().Assembly);
    }
}